/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.item.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 教具 实体类
 *
 * @author
 * @since 2023-03-22
 */
@Data
@TableName("ts_item")
@ApiModel(value = "Item对象", description = "教具")
@EqualsAndHashCode(callSuper = true)
public class ItemEntity extends TenantEntity {

	/**
	 * 乐观锁
	 */
	@ApiModelProperty(value = "乐观锁")
	private String revision;
	/**
	 * 教具名称;教具名称
	 */
	@ApiModelProperty(value = "教具名称;教具名称")
	private String itemName;
	/**
	 * 教具分类id;教具分类id
	 */
	@ApiModelProperty(value = "教具分类id;教具分类id")
	private String itemCatId;
	/**
	 * 目前库存;当前库存数量
	 */
	@ApiModelProperty(value = "目前库存;当前库存数量")
	private Integer stock;
	/**
	 * 应有总数;应该有的库存总数
	 */
	@ApiModelProperty(value = "应有总数;应该有的库存总数")
	private Integer total;
	/**
	 * 教具简介;教具简介
	 */
	@ApiModelProperty(value = "教具简介;教具简介")
	private String summary;

	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer sort;

	/**
	 * 是否rfid管理:0 否 ；1是
	 */
	@ApiModelProperty(value = "是否rfid管理:0 否 ；1是")
	private Integer rfidManage;


	/**
	 * rfid编码
	 */
	@ApiModelProperty(value = "rfid编码")
	private String rfidNo;

	/**
	 * 有效期
	 */
	@ApiModelProperty(value = "有效期")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date validTime;

	/**
	 * RFID的tid(标签的唯一标识,不可编辑)
	 */
	@ApiModelProperty(value = "RFID的tid")
	private String tid;

	/**
	 * RFID的epc(可编辑)
	 */
	@ApiModelProperty(value = "RFID的epc")
	private String epc;

	/**
	 * 教具图片
	 */
	@ApiModelProperty(value = "教具图片")
	private String img;
}
